class Innate_Skill_002 < Innate_Skill
  def initialize(actor)
    super(actor)
    @name = '旋风斧'
    @type = 2
    @energy_cost = 1
    @description = '攻击全体目标，造成攻击力70%的伤害，15%概率触发裂石飞环'
    @target_mode = 2
    @icon_name = "Actor-1-s2"
  end
  def use
    super
    action = Action_Bit.new(@actor, 1)
    action.set_detail(107).set_block
    action_flow.add_action(action)
    damge_info = make_damge_info(@actor.calc_atk(70))
    for item in $game_troop.enemies
      if not item.dead?
        damage_action = Action_Bit.new(item, 2)
        damage_action.set_detail(damge_info)
        action_flow.add_action(damage_action)
      end
    end
    if rand(100) < 30
      action = Action_Bit.new(@actor, 1)
      action.set_detail(45).set_delay_time(6).set_block
      actions = @actor.innate_skills[3].make_actions
      actions.unshift(action)
      action_flow.batch_add_actions(actions)
      @actor.add_popup_text(@actor.innate_skills[3].name, 1)
    end
  end
  def next_level_description
    return "造成攻击力70%的伤害"
  end
end
